<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>

<#include "/common/pagerForm.html">

<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar defect" >
            <ul class="searchContent">
            	<li>
            		<label style="width: 120px;"><@label key="andonTypeCode.C,colon">ANDON类型编号</@label></label> 
            		<input type="text" class="textInput" name="andonTypeCode" value="${condition.andonTypeCode!''}" />
            	</li>
                <li>
                	<label style="width: 120px;"><@label key="andonTypeText.C,colon">ANDON类型描述</@label></label> 
                	<input type="text" class="textInput" name="typeText" value="${condition.typeText!''}" />
                </li>
                <li class="lockFlag">
                    <div style="float: left;">
                        <label><@label key="status.C,colon">状态</@label></label> <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 1>selected="selected"</#if>><@label key="enable.C">启用</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 0>selected="selected"</#if>><@label key="disable.C">禁用</@label></option>
                        </select>
                    </div>
                </li>
				<li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>                
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="ADDANDONTYPE" labelKey="add.B" defalutName="新增">
            <li>
            	<a class="add" target="dialog" mask="true" width="650" height="450" 
            	href="${rc.getContextPath()}/manage/andonType/addAndonType?navTabId=${navTabId!''}" 
            	rel="adddefect" title="<@label key='add.B,andonType.C'>新增ANDON类型</@label>">
            		<span><@label key="add.B">新增</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="MODIFYANDONTYPE" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="650" height="550" 
            	href="${rc.getContextPath()}/manage/andonType/modifyAndonType?code={andonType_code}&navTabId=${navTabId!''}" 
            	rel="editdefect"  title="<@label key='edit.B,andonType.C'>编辑ANDON类型</@label>">
            		<span><@label key="edit.B">编辑</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="VIEWANDONTYPE" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="650" height="540" 
            	href="${rc.getContextPath()}/manage/andonType/viewAndonType?code={andonType_code}&navTabId=${navTabId!''}" 
            	rel="viewdefect" title="<@label key='andonType.C,detail.C'>ANDON类型详情</@label>">
            		<span><@label key="view.B">详情</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="DELETEANDONTYPE" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" 
            	href="${rc.getContextPath()}/manage/andonType/deleteAndonType?navTabId=${navTabId!''}" 
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmDeleteAndonType.M'>确认要删除选择的类型？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="DISABLEANDONTYPE" labelKey="disable.B" defalutName="禁用">
            <li><a class="delete" target="selectedTodo" 
            href="${rc.getContextPath()}/manage/andonType/disableAndonType?&navTabId=${navTabId!''}"
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmStatusDisable.M'>确认禁用选择项？</@label>">
                <span><@label key="disable.B">禁用</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ENABLEANDONTYPE" labelKey="enable.B" defalutName="启用">
            <li><a class="rel" target="selectedTodo" 
            href="${rc.getContextPath()}/manage/andonType/enableAndonType?&navTabId=${navTabId!''}"
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmStatusEnable.M'>确认启用选择项？</@label>">
                <span><@label key="enable.B">启用</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="codes" class="checkboxCtrl"></th>
                <th width="20"><@label key="serialNumber.C">序号</@label></th>
                <th width="50"><@label key="status.C">状态</@label></th>
                <th width="80"><@label key="andonTypeCode.C">安灯类型编号</@label></th>
                <th width="80"><@label key="andonTypeText.C">安灯类型描述</@label></th>
                <th width="60"><@label key="normalColor.C">正常状态颜色</@label></th>
                <th width="60"><@label key="touchColor.C">触发状态颜色</@label></th>
                <th width="80"><@label key="createUser.C">创建人</@label></th>
                <th width="100"><@label key="createDateTime.C">创建时间</@label></th>
                <th width="80"><@label key="modifyUser.C">修改人</@label></th>
                <th width="100"><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as andonType>
            <tr target="andonType_code" rel="${andonType.andonTypeCode!''}">
                <td><input name="codes" value="${andonType.andonTypeCode!''}" type="checkbox"></td>
                <td>${page.startRow + andonType_index}</td>
                <td><#if (andonType.lockFlag == 0)>
                		<@label key="enable.C">启用</@label>
                	<#else>
                		<@label key="disable.C">禁用</@label>
                	</#if></td>
                <td>${andonType.andonTypeCode!''}</td>
                <td>${andonType.typeText!''}</td>                
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonType.normalColor!''};">
                    </div>
                </td>
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonType.touchColor!''};">
                    </div>
                </td>
                <td>${andonType.createUser!''}</td>
                <td>${andonType.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${andonType.modifyUser!''}</td>
                <td>${andonType.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
